package com.lvtulife.paas.gtd.service;

import com.lvtulife.common.service.BaseServiceI;
import com.lvtulife.paas.gtd.bean.HabitRuleVo;
import com.lvtulife.paas.gtd.entity.GtdHabitRule;

/**
 * GtdHabitRule 表数据服务层接口
 */
public interface GtdHabitRuleServiceI extends BaseServiceI<GtdHabitRule> {

    /**
     * 保存习惯规则信息
     *
     * @param vo
     * @return
     */
    Long setHabitRule(HabitRuleVo vo);

    /**
     * 获取习惯规则信息
     *
     * @param id
     * @return
     */
    HabitRuleVo getHabitRule(Long id);

    /**
     * 查询习惯规则信息
     *
     * @param habitId
     * @return
     */
    HabitRuleVo findHabitRule(Long habitId);

    /**
     * 判断是否逾期
     *
     * @param habitId
     * @return
     */
    Boolean isOverdue(Long habitId);
}